<?php
// Eedi Kirves phpkursus1109 15.11.2010


function est_day($day_nr)
{
  $mas[1] = "Esmaspaev";
  $mas[2] = "Teisipaev";
  $mas[3] = "Kolmapaev";
  $mas[4] = "Neljapaev";
  $mas[5] = "Reede";
  $mas[6] = "Laupaev?";
  $mas[7] = "Puhapaev";
  
return $mas[$day_nr];

} 

echo est_day(date("w"))."<br>"; 

?>